<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	template="../Template/Template.xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:fmt="http://java.sun.com/jsp/jstl/fmt">

	<ui:define name="title">
    Trang tìm kiếm nâng cao
  	</ui:define>

	<ui:define name="content">
		<div id="MainPanel" align="left">
		
			<div class="ContentPart">
				<h1 class="ContentPartTitle" align="center">TÌM KIẾM NÂNG CAO</h1>
			</div>

			<div class="ContentPart">
				<h3 class="ContentPartHeader">Nội dung tìm kiếm</h3>

				<div class="ContentPartContent" align="left">

					<div class="ins">Tên sản phẩm</div>
					<h:inputText class="txtField"
						value="#{trangTimKiemNCBean.tensanpham}" />
					<br />
					<div class="ins">Loại sản phẩm</div>
					<h:selectOneMenu styleClass="combobox"
						value="#{trangTimKiemNCBean.maloaisanpham}">
						<f:selectItem itemValue="-1" itemLabel="[tất cả]]" />
						<f:selectItems value="#{trangTimKiemNCBean.lstLoaiSanPham}"
							var="lsp" itemValue="#{lsp.maloaisanpham}"
							itemLabel="#{lsp.tenloaisanpham}" />
					</h:selectOneMenu>
					<br />
					<div class="ins">Nhà sản xuất</div>
					<h:selectOneMenu styleClass="combobox"
						value="#{trangTimKiemNCBean.manhasanxuat}">
						<f:selectItem itemValue="-1" itemLabel="[tất cả]]" />
						<f:selectItems value="#{trangTimKiemNCBean.lstNhaSX}" var="nsx"
							itemValue="#{nsx.manhasanxuat}" itemLabel="#{nsx.tennhansanxuat}" />
					</h:selectOneMenu>

					<br />
					<div class="ins">Giá bán</div>
					Từ:
					<h:selectOneMenu styleClass="combobox"
						value="#{trangTimKiemNCBean.tugiatien}">
						<f:selectItem itemValue="0" itemLabel="[trống]" />

						<c:forEach var="i" begin="1" end="10">
							<f:selectItem itemValue="#{i * 10000}" itemLabel="#{i * 10000}" />
						</c:forEach>

					</h:selectOneMenu>

					-- Đến:
					<h:selectOneMenu styleClass="combobox"
						value="#{trangTimKiemNCBean.dengiatien}">
						<f:selectItem itemValue="99999999" itemLabel="[trống]" />

						<c:forEach var="i" begin="1" end="10">
							<f:selectItem itemValue="#{i * 100000}" itemLabel="#{i * 100000}" />
						</c:forEach>

					</h:selectOneMenu>


					<!-- <div>
					<h:outputLabel value="Tên sản phẩm: " />
					<h:inputText value="#{trangTimKiemNCBean.tensanpham}" type="text" />
					</div>
	
					<div>
						<h:outputLabel value="Loại sản phẩm: " />
	
						<h:selectOneMenu value="#{trangTimKiemNCBean.maloaisanpham}">
							<f:selectItem itemValue="-1" itemLabel="[tất cả]]" />
							<f:selectItems value="#{trangTimKiemNCBean.lstLoaiSanPham}"
								var="lsp" itemValue="#{lsp.maloaisanpham}"
								itemLabel="#{lsp.tenloaisanpham}" />
	
	
						</h:selectOneMenu>
	
					</div>
	
					<div>
						<h:outputLabel value="Nhà sản xuất: " />
	
						<h:selectOneMenu value="#{trangTimKiemNCBean.manhasanxuat}">
							<f:selectItem itemValue="-1" itemLabel="[tất cả]]" />
							<f:selectItems value="#{trangTimKiemNCBean.lstNhaSX}" var="nsx"
								itemValue="#{nsx.manhasanxuat}" itemLabel="#{nsx.tennhansanxuat}" />
	
	
						</h:selectOneMenu>
	
					</div>
	
					<div>
						<h:outputLabel value="Giá bán: " />
						<h:outputLabel value="từ: " />
						<h:selectOneMenu value="#{trangTimKiemNCBean.tugiatien}">
							<f:selectItem itemValue="0" itemLabel="[trống]" />
	
							<c:forEach var="i" begin="1" end="10">
								<f:selectItem itemValue="#{i * 10000}" itemLabel="#{i * 10000}" />
							</c:forEach>
	
						</h:selectOneMenu>
	
						<h:outputLabel value="đến: " />
						<h:selectOneMenu value="#{trangTimKiemNCBean.dengiatien}">
							<f:selectItem itemValue="99999999" itemLabel="[trống]" />
	
							<c:forEach var="i" begin="1" end="10">
								<f:selectItem itemValue="#{i * 100000}" itemLabel="#{i * 100000}" />
							</c:forEach>
	
						</h:selectOneMenu>
	
					</div> 

					<h:commandButton value="Tìm kiếm"
						action="#{trangTimKiemNCBean.TimKiem}" /> -->
					<br />
					<h:commandButton class="buttonLink button flowToRight"
						action="#{trangTimKiemNCBean.TimKiem}" value="Tìm kiếm" />
					<br />
					<br />
				</div>
			</div>
		</div>
	</ui:define>
</ui:composition>

